/**
 * 修改面试
 */
import React from 'react';
import { withRouter, router } from 'umi';
import AuthComponent from '@/utils/auth/AuthComponent';
import { Icon } from '../../components';

function InterviewEditOperate({ candidateId, contactId, ...rest }) {
    const handleJumpEdit = React.useCallback(() => {
        history.push({
            pathname: '/office/personnelManagement/recruitment/candidate/invite/edit',
            query: { candidateId, contactId }
        });
    }, [candidateId, contactId]);
    return (
        <AuthComponent code="office:recruitment:course:interview:edit">
            <Icon
                title="修改面试"
                type="listfunction_modifyinterview_icon_default"
                onClick={handleJumpEdit}
                {...rest}
            />
        </AuthComponent>
    );
}
export default withRouter(InterviewEditOperate);
